package com.adong.config;

import com.adong.aop.Calculate;
import com.adong.aop.LogAspects;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author adong
 */
@EnableAspectJAutoProxy
@Configuration
public class AopConfig {
    @Bean
    public Calculate calculate() {
        return new Calculate();
    }

    @Bean
    public LogAspects logAspects() {
        return new LogAspects();
    }
}
